package 曾世昌12_20.demo1;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.util.List;

public class test {
    public static void main(String[] args) throws Exception {
        List<String> list = FileUtils.readLines( new File( "E:\\untitled5\\src\\rc\\demo12_20\\demo1\\data.txt" ) );
        byte[] bytes = new byte[list.size()];
        int aa = 0;
        for (int i = list.size() - 1; i >= 0; i--) {
            String[] arr = list.get( i ).split( "=" );
            String a = Integer.parseInt( arr[1] ) + 2+"";
            bytes[aa] = Byte.parseByte(a);
            aa++;
        }
        FileUtils.writeByteArrayToFile( new File( "a.png" ), bytes );
    }
}
